
CONFIG += qt warn_on debug

TARGET = openglfunc

QT += core gui widgets

DEFINES += WITH_OPENCV WITH_FFMPEG

DEFINES += amd64

contains(DEFINES, WITH_OPENCV) {
INCLUDEPATH += /opt/data/benew/src/cutedevice/thirdparty/nttr1/include
LIBS += -L/opt/data/benew/src/cutedevice/thirdparty/nttr1/lib

LIBS += -lopencv_core -lopencv_videoio -lopencv_imgcodecs \
        -lopencv_imgproc \
		-lisp -lisp_ini -l AWIspApi -lzbar
}

contains(DEFINES, WITH_FFMPEG) {
INCLUDEPATH += /opt/data/libs/ffmpeg-4.1.3/nttr1/include
LIBS += -L/opt/data/libs/ffmpeg-4.1.3/nttr1/lib

LIBS += -lavformat -lavcodec -lswscale -lswresample -lavfilter -lavutil
}

INCLUDEPATH += ../jklibs include

HEADERS += OpenGLQt.h \
        OpenGLQtWidget.h \
        CameraCapture.h \
		DisplayNormal.h \
		CMVideoDecoder.h CMVideoDecoderFile.h

SOURCES += main.cpp \
        OpenGLQt.cpp \
        OpenGLQtWidget.cpp \
        OpenGLQtEasy.cpp \
        CameraCapture.cpp \
		DisplayNormal.cpp \
		CMVideoDecoder.cpp CMVideoDecoderFile.cpp 
